package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DDetailsMapper;
import com.ruoyi.system.domain.DDetails;
import com.ruoyi.system.service.IDDetailsService;

/**
 * 订单明细Service业务层处理
 * 
 * @author GGJ
 * @date 2024-05-13
 */
@Service
public class DDetailsServiceImpl implements IDDetailsService 
{
    @Autowired
    private DDetailsMapper dDetailsMapper;

    /**
     * 查询订单明细
     * 
     * @param id 订单明细主键
     * @return 订单明细
     */
    @Override
    public DDetails selectDDetailsById(Long id)
    {
        return dDetailsMapper.selectDDetailsById(id);
    }

    /**
     * 查询订单明细列表
     * 
     * @param dDetails 订单明细
     * @return 订单明细
     */
    @Override
    public List<DDetails> selectDDetailsList(DDetails dDetails)
    {
        return dDetailsMapper.selectDDetailsList(dDetails);
    }

    /**
     * 新增订单明细
     * 
     * @param dDetails 订单明细
     * @return 结果
     */
    @Override
    public int insertDDetails(DDetails dDetails)
    {
        return dDetailsMapper.insertDDetails(dDetails);
    }

    /**
     * 修改订单明细
     * 
     * @param dDetails 订单明细
     * @return 结果
     */
    @Override
    public int updateDDetails(DDetails dDetails)
    {
        return dDetailsMapper.updateDDetails(dDetails);
    }

    /**
     * 批量删除订单明细
     * 
     * @param ids 需要删除的订单明细主键
     * @return 结果
     */
    @Override
    public int deleteDDetailsByIds(Long[] ids)
    {
        return dDetailsMapper.deleteDDetailsByIds(ids);
    }

    /**
     * 删除订单明细信息
     * 
     * @param id 订单明细主键
     * @return 结果
     */
    @Override
    public int deleteDDetailsById(Long id)
    {
        return dDetailsMapper.deleteDDetailsById(id);
    }
}
